//
//  HBCategoryViewController.m
//  HBLibary_Example
//
//  Created by Rambo on 2018/10/27.
//  Copyright © 2018年 Rambo. All rights reserved.
//

#import "HBCategoryViewController.h"
#import <HBLibary/HBLibary.h>

@interface HBCategoryViewController ()

@end

@implementation HBCategoryViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(50, 100, 100, 50)];
    view.backgroundColor = [UIColor redColor];
    [view hb_drawBorderLineAtOption:(UIViewBorderLineOptionLeft | UIViewBorderLineOptionTop | UIViewBorderLineOptionBottom | UIViewBorderLineOptionRight) width:6.5 color:[UIColor greenColor]];
    [view hb_setLeftCornerWithRadius:6.5];
    [self.view addSubview:view];
    
    
    UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(50, 200, 100, 50)];
    button.backgroundColor = [UIColor redColor];
    [button setBackgroundImage:[UIImage hb_imageWithLayer:[CALayer hb_layerWithLeftColor:[UIColor redColor] rightColor:[UIColor orangeColor] frame:CGRectMake(0, 0, 1, 1)]] forState:UIControlStateNormal];
    [button hb_drawBorderLineAtOption:UIViewBorderLineOptionLeft width:6.5 color:[UIColor greenColor]];
    [button hb_setLeftCornerWithRadius:6.5];
    [self.view addSubview:button];
    
    UIButton *button1 = [UIButton buttonWithType:UIButtonTypeCustom];
    [button1 setImage:[UIImage imageNamed:@"icon_network_error"] forState:UIControlStateNormal];
    [button1 setTitle:@"这是一张图片文字" forState:UIControlStateNormal];
    [button1 setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];

    button1.frame = CGRectMake(50, 300, 150, 200);
//    button1.backgroundColor = [UIColor redColor];
    [self.view addSubview:button1];
    
    
}



@end
